#include "../Headers/day07.h"
door::door()
{
    cout << "构造d   " << __LINE__ << __func__ << endl;
}
door::~door()
{
    
    cout << "~~d   " << __LINE__ << __func__ << endl;
}
void door ::open()
{
    cout << "door open   " << endl;
}
 
doorA::doorA()
{
    
    cout << "构造da   " << __LINE__ << __func__ << endl;
}

doorA::~doorA()
{
   
    cout << "~~da   " << __LINE__ << __func__ << endl;
}
void doorA ::open()
{
    cout << "doorA open" << endl;
}

doorB::doorB() {cout << "构造db   " << __LINE__ << __func__ << endl;}
doorB::~doorB() { cout << "~~db   " << __LINE__ << __func__ << endl; }
void doorB ::open()
{
    cout << "doorB open" << endl;
}
void fun_open(door &obj_door)
{
    obj_door.open();
}